Timm Bäder [Fri, 8 Jan 2016 08:38:32 +0000 (09:38 +0100)]
revealer: Propagate draw event
Timm Bäder [Tue, 5 Jan 2016 18:05:43 +0000 (19:05 +0100)]
GtkPopover: Protect against transparent backgrounds
If the background is transparent, we can't use it for the input shape,
since that will be empty. Draw a box with rounded corners irectly
instead, in fully opaque black.
https://bugzilla.gnome.org/show_bug.cgi?id=759905
Ben Gamari [Tue, 5 Jan 2016 23:36:21 +0000 (00:36 +0100)]
gdkwindow-x11: Ensure that extended update counter is freed
I believe this lead to rampant leakage of SyncCounters by
gnome-terminal.
https://bugzilla.gnome.org/show_bug.cgi?id=760188
Matthias Clasen [Fri, 8 Jan 2016 00:49:17 +0000 (19:49 -0500)]
inspector: Sort themes in the various theme combos
It is nicer if the themes show up in a predictable order,
so sort them alphabetically.
Matthias Clasen [Fri, 8 Jan 2016 00:50:15 +0000 (19:50 -0500)]
inspector: Add HighContrastInverse to list of themes
Matthias Clasen [Fri, 8 Jan 2016 00:47:58 +0000 (19:47 -0500)]
Rename HighContrast-dark to HighContrastInverse
For accessibility purposes, it is better to have this as a
separate theme than as a dark variant of the HighContrast theme.
Lapo Calamandrei [Fri, 8 Jan 2016 00:38:42 +0000 (01:38 +0100)]
Adwaita: rounded corners on iconview selection
Lapo Calamandrei [Fri, 8 Jan 2016 00:37:20 +0000 (01:37 +0100)]
Adwaita: fix calendar invisible selection
Matthias Clasen [Fri, 8 Jan 2016 00:20:55 +0000 (19:20 -0500)]
colorswatch: Fix the overlay
I misunderstood what the overlay is good for: We need to allocate
it the full size of the widget. since we are using it to render
a background gradient *over* the application-rendered color.
At the same time, save some 100 lines of code by using an icon
helper as gadget, instead of handling the icon manually.
Matthias Clasen [Thu, 7 Jan 2016 23:38:31 +0000 (18:38 -0500)]
color swatch: Fix up rendering
gtk_render_content_path is expecting the full box dimensions,
not just the content area. So, add the border before calling it.
Note it is still possible to have some separation between the
color and the border, by setting padding.
Daiki Ueno [Wed, 6 Jan 2016 09:09:04 +0000 (18:09 +0900)]
gtkbuilder: Install gettext ITS files
Recent gettext has a feature to allow consumer projects to supply their
own string extraction rules for XML files, in ITS format.
Gettext still ships the rule for *.ui, but it would be better
maintained in the upstream project.
https://bugzilla.gnome.org/show_bug.cgi?id=760202
Daniel Mustieles [Thu, 7 Jan 2016 22:15:11 +0000 (23:15 +0100)]
Updated Spanish translation
Daniel Mustieles [Thu, 7 Jan 2016 22:14:58 +0000 (23:14 +0100)]
Updated Spanish translation
Matthias Clasen [Thu, 7 Jan 2016 21:30:19 +0000 (16:30 -0500)]
Implement transitions for radial gradients
This was missing in the initial implementation.
Matthias Clasen [Thu, 7 Jan 2016 21:10:10 +0000 (16:10 -0500)]
Don't interpolate between keywords
Transitioning between linear gradients like
linear-gradient(to top, yellow, green) and
linear-gradient(to left, yellow, green) was yielding
nonsensical results, with the gradient line jumping around
wildly. Fix this by falling back to stupid image interpolation
for these cases.
Kjartan Maraas [Thu, 7 Jan 2016 20:54:51 +0000 (21:54 +0100)]
Updated Norwegian bokmål translation.
Timm Bäder [Thu, 7 Jan 2016 19:33:25 +0000 (20:33 +0100)]
GtkCssGadget: Set valid clip values for invisible gadgets
Matthias Clasen [Thu, 7 Jan 2016 18:24:32 +0000 (13:24 -0500)]
color swatch: Remove a stray frame
When using a gadget, the border is free, no need to call
gtk_render_frame ourselves.
Timm Bäder [Thu, 7 Jan 2016 17:27:11 +0000 (18:27 +0100)]
GtkModelButton: Remove some margins
Now that we can use margins from css for this, remove the margins we set
in code and use css instead.
Timm Bäder [Thu, 7 Jan 2016 17:25:22 +0000 (18:25 +0100)]
GtkModelButton: Remove always-zero variable
Eric Williams [Wed, 6 Jan 2016 20:27:53 +0000 (15:27 -0500)]
Clarified the function docs for gtk_css_provider_load_from_data().
https://bugzilla.gnome.org/show_bug.cgi?id=760238
Matthias Clasen [Wed, 6 Jan 2016 19:56:06 +0000 (14:56 -0500)]
wayland: Only do cursor name fallback for standard names
Always returning a left_ptr if we can't find anything better
broke firefox application-specific fallback for missing cursors.
Keep that working by only doing the fallback for the CSS cursor
names, not for things like hashes.
https://bugzilla.gnome.org/show_bug.cgi?id=760141
Matthias Clasen [Wed, 6 Jan 2016 19:54:33 +0000 (14:54 -0500)]
x11: Only do cursor name fallback for standard names
Always returning a left_ptr if we can't find anything better
broke firefox application-specific fallback for missing cursors.
Keep that working by only doing the fallback for the CSS cursor
names, not for things like hashes.
https://bugzilla.gnome.org/show_bug.cgi?id=760141
Matthias Clasen [Wed, 6 Jan 2016 19:53:45 +0000 (14:53 -0500)]
Add context-menu to the list of standard cursor names
Adwaita doesn't have this one, but we are falling to the
default cursor anyway.
Matthias Clasen [Wed, 6 Jan 2016 04:24:51 +0000 (23:24 -0500)]
Add a test for ltr vs rtl boxes.
This tests that horizontal boxes flip their child nodes
according to text direction to maintain the left-to-right
ordering of child nodes for both text directions.
Matthias Clasen [Wed, 6 Jan 2016 04:22:28 +0000 (23:22 -0500)]
CSS node tests: Add a way to test rtl vs ltr
CSS nodes have a linear sibling relationship; this is supposed
to correspond to left-to-right placement in horizontal arrangements.
This commit explicitly sets the text direction to rtl if the
filename ends in .rtl.ui, so we can test differences in node
tree layout between text directions.
Timm Bäder [Wed, 6 Jan 2016 09:58:08 +0000 (10:58 +0100)]
GtkListBox: Optimize _get_row_at_y a bit
Use g_sequence_lookup for a binary search over the rows.
Timm Bäder [Wed, 6 Jan 2016 09:46:29 +0000 (10:46 +0100)]
GtkListBox: get_row_at_y can return NULL
Rico Tzschichholz [Wed, 6 Jan 2016 14:17:52 +0000 (15:17 +0100)]
HighContrast: Fix make dist
Felipe Borges [Wed, 6 Jan 2016 13:47:48 +0000 (14:47 +0100)]
printing: always propagate Collate value
https://bugzilla.gnome.org/show_bug.cgi?id=728344
Chun-wei Fan [Wed, 6 Jan 2016 13:12:19 +0000 (21:12 +0800)]
Visual Studio builds: Use _USE_MATH_DEFINES
... to fix the build as some C99 math constant macros are being used, such
as M_SQRT2.
Wonchul Lee [Tue, 5 Jan 2016 07:48:48 +0000 (16:48 +0900)]
docs: cleanup duplication of words
https://bugzilla.gnome.org/show_bug.cgi?id=760148
Matthias Clasen [Wed, 6 Jan 2016 03:33:20 +0000 (22:33 -0500)]
HighContrast: Improve search bar appearance
Follow the generally white background we use everywhere else.
This is not perfect, we get double borders when the search bar
is shown, as can be seen in gtk3-widget-factory.
Matthias Clasen [Wed, 6 Jan 2016 03:22:47 +0000 (22:22 -0500)]
HighContrast: Fix up action bar styling
Since HighContrast is not using different background colors
as much as Adwaita, we need to add borders to prevent things
from running into each other.
Matthias Clasen [Wed, 6 Jan 2016 01:39:16 +0000 (20:39 -0500)]
HighContrast: Drop deprecated style properties
Matthias Clasen [Wed, 6 Jan 2016 00:25:06 +0000 (19:25 -0500)]
HighContrast: Add a dark variant
This is just a quick experiment, and so I have another theme with
a dark variant to play with.
Matthias Clasen [Tue, 5 Jan 2016 21:54:40 +0000 (16:54 -0500)]
HighContrast: Add a missing unit
Matthias Clasen [Tue, 5 Jan 2016 21:53:03 +0000 (16:53 -0500)]
HighContrast: Fix sidebar borders
Matthias Clasen [Tue, 5 Jan 2016 19:37:22 +0000 (14:37 -0500)]
HighContrast: Fix checkboxes in selected context
Set a proper color so checks and radios don't disappear on the
black selection background.
Matthias Clasen [Tue, 5 Jan 2016 19:19:58 +0000 (14:19 -0500)]
HighConstast: Some fixes for treeview headers
Matthias Clasen [Tue, 5 Jan 2016 15:55:34 +0000 (10:55 -0500)]
HighContrast: Keep spinbuttons from resizing on hover
Matthias Clasen [Tue, 5 Jan 2016 12:48:54 +0000 (07:48 -0500)]
HighContrast: Fix checks and radios
Matthias Clasen [Tue, 5 Jan 2016 12:40:39 +0000 (07:40 -0500)]
HighContrast: Some menu fixes
Matthias Clasen [Tue, 5 Jan 2016 12:17:16 +0000 (07:17 -0500)]
HighContrast: paned fixes
Mostly copied from Adwaita.
Cosimo Cecchi [Tue, 5 Jan 2016 18:01:33 +0000 (10:01 -0800)]
HighContrast: more combobox fixes
Taken from Adwaita.
Paolo Borelli [Tue, 5 Jan 2016 17:40:25 +0000 (18:40 +0100)]
docs: try to clarify widget_get_state_flags vs context_get_state
Matthias Clasen [Tue, 5 Jan 2016 04:52:28 +0000 (23:52 -0500)]
HighContrast: Some combobox fixes
Mostly copied from Adwaita.
Matthias Clasen [Tue, 5 Jan 2016 04:45:13 +0000 (23:45 -0500)]
HighContrast: Fix frame styling
Matthias Clasen [Tue, 5 Jan 2016 04:28:32 +0000 (23:28 -0500)]
HighContrast: fix up color chooser theming
Mostly copied from Adwaita.
Matthias Clasen [Tue, 5 Jan 2016 03:08:53 +0000 (22:08 -0500)]
HighContrast: Fix up stackswitcher
Copy Some of the more recent additions from Adwaita.
Matthias Clasen [Tue, 5 Jan 2016 02:35:55 +0000 (21:35 -0500)]
HighContrast: No blue spinners
Spinners are drawing backgrounds now, so setting a blue
background color is pretty distracting.
Matthias Clasen [Tue, 5 Jan 2016 02:22:11 +0000 (21:22 -0500)]
Make sure icons update on theme change
Gadgets don't connect to style-changed for widget nodes, and
GtkImage uses its widget node for the icon helper. The visible
effect of this is that symbolic icons don't change color when
switching to the dark variant of Adwaita.
Fix this by manually invalidating the icon helper.
Matthias Clasen [Mon, 4 Jan 2016 21:58:10 +0000 (16:58 -0500)]
widget-factory: Make the notebook action truly circular
The sidebar-button class doesn't work out so well for this
since it has horizontal padding.
Cosimo Cecchi [Tue, 5 Jan 2016 02:14:33 +0000 (18:14 -0800)]
levelbar: loop over all block gadgets to determine min size
Instead of just picking the first. This is because the theme might set a
border on only one of them, like the HighContrast theme does.
Cosimo Cecchi [Tue, 5 Jan 2016 01:55:26 +0000 (17:55 -0800)]
levelbar: fix parameter confusion
We're always interested in the minimum size.
Cosimo Cecchi [Tue, 5 Jan 2016 01:50:24 +0000 (17:50 -0800)]
HighContrast: update to use -gtk-outline-radius
Cosimo Cecchi [Tue, 5 Jan 2016 01:49:41 +0000 (17:49 -0800)]
HighContrast: update to use :hover
Cosimo Cecchi [Tue, 5 Jan 2016 01:48:59 +0000 (17:48 -0800)]
HighContrast: update to use :indeterminate
Cosimo Cecchi [Tue, 5 Jan 2016 01:46:43 +0000 (17:46 -0800)]
HighContrast: update to use :disabled
Matthias Clasen [Mon, 4 Jan 2016 20:34:50 +0000 (15:34 -0500)]
tests: Rework the way foreigndrawing works
Instead of the weird PathElt struct, generate a quick-n-dirty parser
that parses CSS selectors into GtkWidgetPath elements.
Based on a patch by Benjamin Otte.
Matthias Clasen [Mon, 4 Jan 2016 18:54:20 +0000 (13:54 -0500)]
Document radial gradient syntax
Matthias Clasen [Mon, 4 Jan 2016 02:49:13 +0000 (21:49 -0500)]
Add a CSS style test for gradients
This mainly just tests that gradients are properly
reproduced by gtk_style_context_to_string.
Matthias Clasen [Sun, 27 Dec 2015 07:04:20 +0000 (02:04 -0500)]
Add some tests for radial gradient parsing
These are the examples from the CSS spec.
Matthias Clasen [Sun, 27 Dec 2015 07:03:35 +0000 (02:03 -0500)]
Implement CSS radial gradients
Implement parsing and drawing of radial gradients according to
http://www.w3.org/TR/css3-images/#radial-gradients.
Transitions are not implemented yet.
Christoph Reiter [Sat, 31 Oct 2015 12:38:24 +0000 (13:38 +0100)]
Mention GtkIconSize in all docs where the argument/return is annotated as taking an int instead of GtkIconSize
In https://bugzilla.gnome.org/show_bug.cgi?id=601425 the annotations
were changed to int as they not only take the predefined enum values
but also user defined values registered through gtk_icon_size_register()
As a result the typelib doesn't contain any information about
GtkIconSize for those arguments and the Python docstring only
shows the corresponding Python type "int".
This changes the argument docs to mention the type explicitly
so the Python doc generator can add a link to Gtk.IconSize
which contains the most useful predefined values.
https://bugzilla.gnome.org/show_bug.cgi?id=757411
Marek Černocký [Mon, 4 Jan 2016 10:52:10 +0000 (11:52 +0100)]
Updated Czech translation
Marek Černocký [Mon, 4 Jan 2016 10:51:20 +0000 (11:51 +0100)]
Updated Czech translation
Rico Tzschichholz [Mon, 4 Jan 2016 09:16:45 +0000 (10:16 +0100)]
docs/gtk: Include css.xml
Rico Tzschichholz [Mon, 4 Jan 2016 08:53:24 +0000 (09:53 +0100)]
docs/gtk: Sort content_files/expand_content_files alphabetically
Piotr Drąg [Mon, 4 Jan 2016 07:27:02 +0000 (08:27 +0100)]
Updated POTFILES.skip
Chun-wei Fan [Mon, 4 Jan 2016 07:09:14 +0000 (15:09 +0800)]
config.h.win32.in: Update for _lock_file()
The Visual Studio versions that we support supports locking functions in
their CRT, so support that to optimize things a bit. Also update the
config.h.win32.in so that its entries are more in line with the ones in
the autootols builds, and make sure that we use UNIX line endings.
Cosimo Cecchi [Mon, 4 Jan 2016 01:20:06 +0000 (17:20 -0800)]
cssstyle: fix a compiler warning
Matthias Clasen [Sun, 3 Jan 2016 22:23:59 +0000 (17:23 -0500)]
Update expected output
The previous commit changed the format of the output
generated by the CSS style tests.
Matthias Clasen [Sun, 3 Jan 2016 22:05:16 +0000 (17:05 -0500)]
Improve formatting of CSS style prints
Add a newline after CSS properties, so things don't run into
each other.
Matthias Clasen [Sun, 3 Jan 2016 21:14:43 +0000 (16:14 -0500)]
Skip GdkX11DeviceManagerCore in default value tests
We already skip the XI2 implementation, and the core
one needs the same treatment.
Matthias Clasen [Sun, 3 Jan 2016 20:41:09 +0000 (15:41 -0500)]
Update expected output for CSS style tests
The format for CSS values changed slightly in one of the
previous commits.
Matthias Clasen [Sun, 3 Jan 2016 20:37:40 +0000 (15:37 -0500)]
Use a custom theme for CSS style tests
Use a custom, empty theme and stop importing reset-to-defaults.css.
This avoids overwriting initial values, so our initial value
filtering works better.
Matthias Clasen [Sun, 3 Jan 2016 20:34:08 +0000 (15:34 -0500)]
Redo CSS style printing
Drop the custom style printing implementation in gtkcssnode.c and
instead reuse the existing gtk_css_style_print function, extending
it a bit to suit our needs.
Instead of computing values, just recognize initial values by
having no CSS section. Also do away with the show-initial flag, and
just always filter out initial values. The flag can come back when
it is needed.
Matthias Clasen [Sun, 3 Jan 2016 19:04:52 +0000 (14:04 -0500)]
Update expected output for node and style tests
The previous commit changed the format of the output.
Matthias Clasen [Sun, 3 Jan 2016 19:02:00 +0000 (14:02 -0500)]
Move node printing to GtkCssNodeDeclaration
The node declaration has all the information we are printing
here (except for visibility). At the same time, redo the format
to print the information in selector format, and indicate
(in)visibility by enclosing the selector in square brackets.
Cosimo Cecchi [Sun, 3 Jan 2016 19:33:19 +0000 (11:33 -0800)]
tests: fix Makefile.am syntax
It requires a tab character, or the build will fail.
Cosimo Cecchi [Sun, 3 Jan 2016 19:25:45 +0000 (11:25 -0800)]
cssnode: fix a compiler warning
Matthias Clasen [Sun, 3 Jan 2016 17:05:57 +0000 (12:05 -0500)]
Fix the build
Matthias Clasen [Sun, 3 Jan 2016 16:59:15 +0000 (11:59 -0500)]
Forgotten file
I forgot to add this file to source control when the new tests
were initially added.
Felix Riemann [Sun, 3 Jan 2016 14:32:38 +0000 (15:32 +0100)]
shortcuts: Separate gestures in search results
Gestures where shown separately from other shortcuts in the search
results before. This restores that behaviour.
https://bugzilla.gnome.org/show_bug.cgi?id=760097
Felix Riemann [Sun, 3 Jan 2016 14:22:06 +0000 (15:22 +0100)]
shortcuts: Show icons and subtitles for gestures in search results
https://bugzilla.gnome.org/show_bug.cgi?id=760097
Matthias Clasen [Sun, 3 Jan 2016 15:56:11 +0000 (10:56 -0500)]
Update expected results of a11y tests
All of these now have a harmless extra "panel".
Matthias Clasen [Sun, 3 Jan 2016 15:42:13 +0000 (10:42 -0500)]
lockbutton: Fix up the template
I forgot to clean this up when switching to a stack.
Matthias Clasen [Sun, 3 Jan 2016 15:34:40 +0000 (10:34 -0500)]
Skip GdkX11DeviceManagerCore in notify tests
We already skip the XI2 implementation, and the core
one needs to the same treatment.
Matthias Clasen [Sun, 3 Jan 2016 15:33:54 +0000 (10:33 -0500)]
assistant: Drop unnecessary frame
We can just style the sidebar box itself, no need for an
extra frame widget.
Matthias Clasen [Sun, 3 Jan 2016 14:55:30 +0000 (09:55 -0500)]
lockbutton: Use a stack
The previous way of manually juggling the visibility of the
labels doesn't work anymore, now that gadgets of invisible
widgets don't allocate space anymore.
Matthias Clasen [Tue, 29 Dec 2015 04:26:50 +0000 (23:26 -0500)]
Add a css style test for currentColor
Matthias Clasen [Tue, 29 Dec 2015 04:20:57 +0000 (23:20 -0500)]
Add a css style test for inherit and initial
Matthias Clasen [Mon, 28 Dec 2015 18:59:10 +0000 (13:59 -0500)]
Add a css style test for :first/last/only-child
Matthias Clasen [Mon, 28 Dec 2015 17:39:54 +0000 (12:39 -0500)]
Add a css style test for font inheritance
Matthias Clasen [Tue, 29 Dec 2015 12:44:53 +0000 (07:44 -0500)]
Add a test framework for CSS styles
This uses the same function for dumping CSS nodes and styles
as the CSS node test. It can be used to test aspects of inheritance
and matching, as well as initial values.
No actual tests yet.
Matthias Clasen [Mon, 28 Dec 2015 16:00:32 +0000 (11:00 -0500)]
Add CSS node tests for levelbars
Matthias Clasen [Mon, 28 Dec 2015 15:52:20 +0000 (10:52 -0500)]
Add CSS node test for progressbars
Matthias Clasen [Mon, 28 Dec 2015 15:35:58 +0000 (10:35 -0500)]
Add a CSS node test for buttons
Matthias Clasen [Mon, 28 Dec 2015 07:00:58 +0000 (02:00 -0500)]
Add a CSS node test for entries